/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package javafxapplication1;

import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 *
 * @author my
 */
public class ColumnInfo {

    private final StringProperty name = new SimpleStringProperty();
    private final IntegerProperty type = new SimpleIntegerProperty(-1);
    private final StringProperty min = new SimpleStringProperty("");
    private final StringProperty max = new SimpleStringProperty("");
    private final StringProperty defaultVal = new SimpleStringProperty("");
    private final StringProperty sequence = new SimpleStringProperty("");
    private final StringProperty promptTitle = new SimpleStringProperty("");
    private final StringProperty promptContent = new SimpleStringProperty("");

    public ColumnInfo() {
    }
  

    public int getType() {
        return type.get();
    }

    public void setType(int value) {
        type.set(value);
    }

    public IntegerProperty typeProperty() {
        return type;
    }

    public String getMax() {
        return max.get();
    }

    public void setMax(String value) {
        max.set(value);
    }

    public StringProperty maxProperty() {
        return max;
    }

    public String getPromptTitle() {
        return promptTitle.get();
    }

    public void setPromptTitle(String value) {
        promptTitle.set(value);
    }

    public StringProperty promptTitleProperty() {
        return promptTitle;
    }

    public String getPromptContent() {
        return promptContent.get();
    }

    public void setPromptContent(String value) {
        promptContent.set(value);
    }

    public StringProperty promptContentProperty() {
        return promptContent;
    }
    private final StringProperty comments = new SimpleStringProperty();

    public String getComments() {
        return comments.get();
    }

    public void setComments(String value) {
        comments.set(value);
    }

    public StringProperty commentsProperty() {
        return comments;
    }

    public String getSequence() {
        return sequence.get();
    }

    public void setSequence(String value) {
        sequence.set(value);
    }

    public StringProperty sequenceProperty() {
        return sequence;
    }

    public String getDefaultVal() {
        return defaultVal.get();
    }

    public void setDefaultVal(String value) {
        defaultVal.set(value);
    }

    public StringProperty defaultValProperty() {
        return defaultVal;
    }

    public String getMin() {
        return min.get();
    }

    public void setMin(String value) {
        min.set(value);
    }

    public StringProperty minProperty() {
        return min;
    }

    public String getName() {
        return name.get();
    }

    public void setName(String value) {
        name.set(value);
    }

    public StringProperty nameProperty() {
        return name;
    }

    @Override
    public String toString() {
        return "ColumnInfo{" + "name=" + name + ", min=" + min + ", max=" + max + ", defaultVal=" + defaultVal + ", sequence=" + sequence + ", promptTitle=" + promptTitle + ", promptContent=" + promptContent + ", type=" + type + ", comments=" + comments + '}';
    }
    

}
